<!DOCTYPE html>
<html>
<head>
    <include file="Public/head"/>
</head>
<body>
<div id="tbh5v0">
  <div class="login">
	<header id="header">
	<div class="header_l header_return"> <a class="ico_10" href="{:U('Center/index')}"> 返回 </a> </div>
	<h1> 我的订单 </h1>
    </header>
	<section class="wrap order_list">

    <section class="order_box padd1 radius10 single_item" id="more_element_1">
        <table width="100%" border="0" cellpadding="5" cellspacing="0" class="ectouch_table">
            <volist name="orders" id="order">
                  <tbody>
                  <tr>
                      <td class="order_status" style="border-bottom:1px #CCCCCC dashed">订单状态：
                          <switch name="order['pay_status']">
                              <case value="0"><span style="color:#ec5151;">未支付</span></case>
                              <case value="1"><span style="color:#6bd0a2;">已支付</span></case>
                          </switch>
                          <switch name="order['deliver_status']">
                              <case value="0"><span style="color:#ec5151;">未发货</span></case>
                              <case value="1"><span style="color:#1ca2e1;">已发货</span></case>
                              <case value="2"><span style="color:#6bd0a2;">已收货</span></case>
                          </switch>
                          <switch name="order['status']">
                              <case value="0"><span style="color:#1ca2e1;">进行中</span></case>
                              <case value="1"><span style="color:#6bd0a2;">已完成</span></case>
                          </switch>

                      </td>
                  </tr>
                  <tr>
                      <td class="order_content"><a href="{:U('Order/detail',array('id'=>$order['id']))}"><table width="100%" border="0" cellpadding="5" cellspacing="0" class="ectouch_table_no_border">

                          <tbody>
                          <tr>
                              <td><img src="__IMG__/class-logo.png" width="50" height="50"></td>
                              <td>订单编号：{$order.number}<br>
                                  订单金额：￥<span>{$order.total_price}</span><br>
                                  下单时间：{$order.created_at|date='Y-m-d H:i:s',###}</td>
                              <td style="position:relative"><span class="new-arr"></span></td>
                          </tr>
                          </tbody>
                      </table></a></td>
                  </tr>
                  <if condition="$order['pay_status'] eq 0">
                      <tr>
                          <td class="order_handler"><a href="/Pay/buy/index.php?order_id={$order['id']}">付款</a></td>
                      </tr>
                  </if>
                  <switch name="order['status']">
                      <case value="0">
                          <tr>
                              <td class="$order_tracking"><a href="{:U('Order/delete',array('order_id'=>$order['id']))}" class="c-btn3"  onclick="if (!confirm('您确认要取消该订单吗？取消后此订单将视为无效订单')) return false;">取消订单</a></td>
                          </tr>
                      </case>
                      <case value="1">
                          <tr>
                              <td class="$order_tracking"><a href="{:U('Order/delete',array('order_id'=>$order['id']))}" class="c-btn3"  onclick="if (!confirm('您确认要取消该订单吗？取消后此订单将视为无效订单')) return false;">删除订单</a></td>
                          </tr>
                      </case>
                  </switch>
                  <tr style="height: 30px;"></tr>
                  </tbody>


            </volist>
        </table>
    </section>
	


	</section>
	<include file="Public/bottom"/>
</body>
</html>
